<?php
     @session_start();
    include("template/head.php");
  	//  include("template/menu_left.php");   
    require_once ("submit/fournisseurs/edit_fournisseur.php");	
?>
    <div class="container-fluid">
        <div class="row-fluid">
                
        <?php include("template/menu_left.php") ?>                
        
        <div class="span10" id="content">
        	 
                
            <div class="row-fluid">
              

            <!-- block -->
                <!--  ************************ ROW ************************  -->
              <div class="span12"> 
              	<?php  
	
				    while($row = mysql_fetch_object($result_fournisseur))
				    {
				    ?>  
				    
                 <div class="block">
                 	<form id="formAddIntervention" class="form-horizontal" method="POST" action="submit/fournisseurs/edit_delete_fournisseur.php?action=update">
                    <input type="hidden" name="id_fournisseur" value="<?php echo $row->id_fournisseur ?>" />
                    <div class="navbar navbar-inner block-header">
                        <div class="muted pull-left">Editer Fournisseur :</div>
                        <!-- .toolbar -->
                    </div>   
                    <div class="block-content in" id="div-1">
                    	<br><br>
                    
                    <div class="control-group">  
                            <label class="control-label span2" for="designation">Raison Sociale :</label>
                            <div class="controls">
		 						<input type="text" name="raison" class="validate[required] form-control" value="<?php echo $row->raison_social?>" id="form-validation-field-2">	
                            </div>
                    </div>	
                    <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Nom :</label>
                          <div class="controls">
                            <input type="text" value="<?php echo $row->nom_fournisseur ?>" class="validate[required] form-control" name="name_fournisseur" >
                          </div>
                    </div>
                    
                   <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Prénom :</label>
                          <div class="controls">
                            <input type="text" value="<?php echo $row->prenom_fournisseur; ?>" class="validate[required] form-control" name="prenom_fournisseur" >
                          </div>
                    </div>
                    
                    <div class="control-group">  
                    	<label class="control-label span2" for="designation">Pays :</label>
                        <div class="controls">
                        	<select name="pays" class="chzn-select validate[required] form-control" id="select01">
								<option value="<?php echo $row->pays; ?>"><?php echo $row->pays; ?></option>
	                        	<?php include("template/pays.php"); ?>
                        		</select>
                        </div>
                    </div> 
                    <div class="control-group">  
                            <label class="control-label span2" for="designation">Tél :</label>
                            <div class="controls">
                                <input type="text" name="tel" class="form-control" value="<?php echo $row ->tel_fournisseur ?>" id="form-validation-field-2">  	
                            </div>
                    </div>
                    <div class="control-group">  
                            <label class="control-label span2" for="designation">Fax :</label>
                            <div class="controls">
	                            <input type="text" name="fax" class="form-control" value="<?php echo $row->fax_fournisseur?>" id="form-validation-field-2">
                            </div>
                    </div>
                    <div class="control-group">  
                            <label class="control-label span2" for="designation">E-mail :</label>
                            <div class="controls">
                            	<input type="text" name="email" class="form-control" value="<?php echo $row->email_fournisseur ?>" id="form-validation-field-2">
                            </div>
                    </div>
                    <div class="control-group">  
                            <label class="control-label span2" for="description">Description :</label>
                            <div class="controls">
                            	<textarea class="span9" placeholder="Déscription du fournisseur..." name="description" id="comment"><?php echo $row->description ?></textarea>
                            </div>
                    </div>      
                     <!-- /.control-group -->
                    </div>
                    </div>
                    <input class="span3 btn btn-primary" type="submit" value="Editer" style="margin-bottom:1em; float: right;">
                   </form>
              </div>
              
              <?php } ?>
            <!--  ************************ / ROW ************************  -->
            <!-- block -->
               
                    
              
          
          
          </div>
            <hr>
        </div>
<?php  include("template/footer_vente_achat.php") ; ?>